package com.itfreer.bpm.demo.entity;

import java.io.Serializable;
import java.util.Date;
import java.util.LinkedHashSet;
import java.util.Set;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.Index;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.OrderBy;
import javax.persistence.Table;

import org.springframework.beans.BeanUtils;

import com.itfreer.bpm.api.IJdbcBpmBaseEntity;
import com.itfreer.bpm.config.entity.BpmConfigEntity;
import com.itfreer.bpm.config.entity.BpmTaskConfigEntity;
import com.itfreer.bpm.config.entity.JdbcBpmTaskConfigEntity;
import com.itfreer.form.api.JdbcBaseEntity;

/**
 * 审批历史信息表
 */
@Entity(name = "bpm_demo")
@Table(indexes = { @Index(name = "bpm_demo_sid", columnList = "s_id"),
		@Index(name="bpm_demo_sexeid", columnList="s_exeid")})
public class JdbcBpmDemoEntity implements IJdbcBpmBaseEntity<BpmDemoEntity>, Serializable {
	
	@Column(name = "s_exeid")
	private String sexeid;
	@Column(name = "project_name")
	private String projectname;
	@Id
	@Column(name = "s_id")
	private String sid;
	
	/**
	 * 流程实例主键
	 */

	public String getSexeid() {
		return this.sexeid;
	}
	/**
	 * 流程实例主键
	 */

	public void setSexeid(String sexeid) {
		this.sexeid=sexeid;
	}
	
	/**
	 * 项目名称
	 */

	public String getProjectname() {
		return this.projectname;
	}
	/**
	 * 项目名称
	 */
	public  void setProjectname(String projectname) {
		 this.projectname=projectname;
	}
	/**
	 * 项目数据主键
	 */

	public String getId() {
		return this.sid;
	}
	/**
	 * 项目数据主键
	 */
	public  void setId(String id) {
		 this.sid=id;
	}
	@Column(name = "suggest1")
	private String suggest1;
	/**
	 * 测试审批意见
	 */
	public String getSuggest1() {
		return this.suggest1;
	}
	/**
	 * 项目审批意见
	 */
	public  void setSuggest1(String suggest1) {
		 this.suggest1=suggest1;
	}
	@Column(name = "suguser1")
	private String suguser1;
	/**
	 * 测试审批用户
	 */
	public String getsuguser1() {
		return this.suguser1;
	}
	/**
	 * 项目审批用户
	 */
	public  void setsuguser1(String suguser1) {
		 this.suguser1=suguser1;
	}
	@Column(name = "sugusj1")
	private Date sugusj1;
	/**
	 * 测试审批时间
	 */
	public Date getsugsj1() {
		return this.sugusj1;
	}
	/**
	 * 项目审批时间
	 */
	public  void setsugsj1(Date sugusj1) {
		 this.sugusj1=sugusj1;
	}
	@Column(name = "suggest2")
	private String suggest2;
	/**
	 * 测试审批意见
	 */
	public String getSuggest2() {
		return this.suggest2;
	}
	/**
	 * 项目审批意见
	 */
	public  void setSuggest2(String suggest2) {
		 this.suggest2=suggest2;
	}
	@Column(name = "suguser2")
	private String suguser2;
	/**
	 * 测试审批用户
	 */
	public String getsuguser2() {
		return this.suguser2;
	}
	/**
	 * 项目审批用户
	 */
	public  void setsuguser2(String suguser2) {
		 this.suguser2=suguser2;
	}
	@Column(name = "sugusj2")
	private Date sugusj2;
	/**
	 * 测试审批时间
	 */
	public Date getsugsj2() {
		return this.sugusj2;
	}
	/**
	 * 项目审批时间
	 */
	public  void setsugsj2(Date sugusj2) {
		 this.sugusj2=sugusj2;
	}
	@Column(name = "suggest3")
	private String suggest3;
	/**
	 * 测试审批意见
	 */
	public String getSuggest3() {
		return this.suggest3;
	}
	/**
	 * 项目审批意见
	 */
	public  void setSuggest3(String suggest3) {
		 this.suggest3=suggest3;
	}
	@Column(name = "suguser3")
	private String suguser3;
	/**
	 * 测试审批用户
	 */
	public String getsuguser3() {
		return this.suguser3;
	}
	/**
	 * 项目审批用户
	 */
	public  void setsuguser3(String suguser3) {
		 this.suguser3=suguser3;
	}
	
	private Date sugusj3;
	/**
	 * 测试审批时间
	 */
	public Date getsugsj3() {
		return this.sugusj3;
	}
	/**
	 * 项目审批时间
	 */
	public  void setsugsj3(Date sugusj3) {
		 this.sugusj3=sugusj3;
	}
	
	@Override
	public void from(BpmDemoEntity t) {
		BeanUtils.copyProperties(t, this);

	}
	@Override
	public BpmDemoEntity toEntity() {
		BpmDemoEntity toEntity = new BpmDemoEntity();
		BeanUtils.copyProperties(this, toEntity);
		return toEntity;
	}
}
